package com.jzo2o.customer.controller.consumer;


import com.jzo2o.api.customer.dto.response.AddressBookResDTO;
import com.jzo2o.customer.model.dto.request.AddressBookUpsertReqDTO;
import com.jzo2o.customer.service.IAddressBookService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController("consumerAddressBookController")
@RequestMapping("/consumer/address-book")
@Api(tags = "用户端 - 地址簿相关接口")
public class AddressBookController {
    @Resource
    private IAddressBookService addressBookService;

    /**
     *根据用户id做为创建者与修改者进行新增与修改的操作
     * @param reqDTO
     * @return
     */
    @PostMapping
    @ApiOperation("新增或修改地址簿")
    public void upsertAddressBook(@RequestBody AddressBookUpsertReqDTO reqDTO) {
        System.out.println("新增或修改地址簿：" + reqDTO);
//        addressBookService.addAddressBook(reqDTO);
    }





}
